﻿using UnityEngine;
using System.Collections;

public class DestroyByTime : MonoBehaviour {

	public float lifeTime;      

    /// <summary>
    /// Called at the creation of the game.
    /// </summary>
	void Start () {
		Destroy (gameObject, lifeTime);     // delete the object after the lifetime
	}

}
